class Architecture < ActiveRecord::Base
  has_many :layers, :foreign_key => 'architecture_id', :dependent => :destroy 
  belongs_to :user, :class_name => 'user', :foreign_key => 'user_id', :dependent => :destroy
end
